<?php

require_once './config.php';

$xuhao = $_REQUEST['xuhao'];

$sql = "DELETE FROM jiagou WHERE xuhao=$xuhao";
mysqli_query($conn,$sql);
$rows = mysqli_affected_rows($conn);
if($rows > 0){
    echo json_encode(array(
        'code' => 1 ,
        'msg' => '删除成功'
    ));
}
